package com.firebird.app.fekpsl.mvp.sword.friend

import com.firebird.app.fekpsl.base.BasePresenter
import com.firebird.app.fekpsl.ext.ss
import com.firebird.fekpsl.mvp.model.MessagerModel

/**
 * Created by firebird on 2018/4/21.
 */
class MessagerPresenter : BasePresenter<MessagerContract.Model, MessagerContract.View>(), MessagerContract.Presenter {

    override fun createModel(): MessagerContract.Model? = MessagerModel()

    override fun getMessagerList(pageNo:Int,userUuid:String) {
        mModel?.getMessagerList(pageNo,userUuid)?.ss(mModel, mView) {
            mView?.showMessagerList(it.data)
        }
    }

}